#!/bin/bash -f

# run serment a bunch of times and print something from the output

# ILU(LEVEL)
LEVEL='0 1 2 3 4'
NUMIT=20

for p in $LEVEL
do

echo " level p=$p "
echo " iaea "
for i in {1..20}
do
    ./serment inputs/iaea_global_large.xml -pc_factor_levels $p > iaeaoutPC$p
    grep "Newton Time" iaeaoutPC$p
    grep " Server Time" iaeaoutPC$p
done
echo " biblis "
for i in {1..20}
do
    ./serment inputs/biblis_global_large.xml -pc_factor_levels $p > biblisoutPC$p
    grep "Newton Time" biblisoutPC$p
    grep " Server Time" biblisoutPC$p
done
echo " koeberg "
for i in {1..20}
do
    ./serment inputs/koeberg_global_large.xml -pc_factor_levels $p > koebergoutPC$p
    grep "Newton Time" koebergoutPC$p 
    grep " Server Time" koebergoutPC$p
done
done
